package com.duan.laugh.file.util;

import com.duan.laugh.common.core.exception.ICodeMessage;

/**
 *
 * @author duanjw
 */
public enum EnumCodeMessage implements ICodeMessage {
    FILE_NOT_FOUND(100,"文件不存在，或已经被删除"),
    FILE_ACCESS_DENIED(101,"拒绝访问该文件");
    /**
     * 错误码
     */
    private Integer code;

    /**
     * 消息内容
     */
    private String message;

    EnumCodeMessage(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public Integer getCode() {
        return code;
    }

    @Override
    public String getMsg() {
        return message;
    }

    public String getMessage() {
        return message;
    }
}
